package com.tcoiss.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tcoiss.message.domain.MqCommonRegistryData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MqCommonRegistryDataMapper extends BaseMapper<MqCommonRegistryData> {

    public int refresh(@Param("commonRegistryData") MqCommonRegistryData commonRegistryData);

    public int add(@Param("commonRegistryData") MqCommonRegistryData commonRegistryData);


    public List<MqCommonRegistryData> findData(@Param("key") String key);

    public int cleanData(@Param("timeout") int timeout);

    public int deleteDataValue(@Param("key") String key,
                               @Param("value") String value);

    public int count();
}
